import React from 'react';
import Video from '../Video';
export default class App extends React.Component{
    state = {
        src: 'http://127.0.0.1:3001/video/random?a'
    }

    render(){
        return <div>
            <Video src={this.state.src} change={this.change}/>
        </div>
    }

    change = () => {
        this.setState({
            src: 'http://127.0.0.1:3001/video/random?t=' + Date.now()
        })
    }
}